package com.egene.zh.activity.main;

import com.egene.zh.R;
import com.egene.zh.activity.contact.ContactViewPagerFragment_;
import com.egene.zh.activity.member.MemberViewPagerFragment;
import com.egene.zh.activity.product.ProductFragment_;
import com.egene.zh.activity.settings.SettingsFragment_;
import com.egene.zh.activity.wiki.WikiViewPagerFragment;

public enum MainTab {

    MEMBER(0, R.string.tab_name_member, R.drawable.tab_icon_menber, MemberViewPagerFragment.class),

    PRODUCT(1, R.string.tab_name_product, R.drawable.tab_icon_product,ProductFragment_.class),

    WIKI(2, R.string.tab_name_wiki, R.drawable.tab_icon_wiki, WikiViewPagerFragment.class),

    CONTACT(3, R.string.tab_name_contact, R.drawable.tab_icon_contact, ContactViewPagerFragment_.class),

    SETTING(4, R.string.tab_name_settings, R.drawable.tab_icon_settings, SettingsFragment_.class);


    private int idx;
    private int resName;
    private int resIcon;
    private Class<?> clz;

    private MainTab(int idx, int resName, int resIcon, Class<?> clz) {
        this.idx = idx;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }
}
